﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("WorkKindSpec")]
    public class WorkKindSpec
    {
        public WorkKindSpec()
        {
        }

        [Key]
        [Column(Order = 1)]
        public int WorkKindId { get; set; }
        [Key]
        [Column(Order = 2)]
        public int WorkKindParamId { get; set; }

        [ForeignKey("WorkKindId")]
        public virtual WorkKind WorkKind { get; set; }
        [ForeignKey("WorkKindParamId")]
        public virtual WorkKindParam WorkKindParam { get; set; }
    } 
}